|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.cl.GraphTalker
Walks through a control flow graph, displaying information about each vertex and edge. Useful for debugging and as a model GraphXformer implementation.
Constructor Summary | |
GraphTalker()
|
Method Summary | |
void |
discoverEdge(Edge e)
Called when initially visiting edge. |
void |
discoverGraph(Directed graph)
Called at beginning of visiting a graph or subgraph. |
void |
discoverVertex(Vertex v)
Called when beginning visit to vertex. |
void |
finishEdge(Edge e)
Called at end of visit to edge. |
void |
finishGraph(Directed graph)
Called at end of visiting a graph or subgraph. |
void |
finishVertex(Vertex v)
Called at end of vertex visit. |
static java.lang.String |
getName()
|
static void |
setName(java.lang.String s)
|
void |
xform(org.apache.bcel.generic.ClassGen cg,
org.apache.bcel.generic.MethodGen method,
ControlFlowGraph cfg)
Apply the transformation to the graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphTalker()
Method Detail |
public void discoverGraph(Directed graph)
Visitor
discoverGraph
in interface Visitor
public void finishGraph(Directed graph)
Visitor
finishGraph
in interface Visitor
public void discoverVertex(Vertex v)
Visitor
discoverVertex
in interface Visitor
public void finishVertex(Vertex v)
Visitor
finishVertex
in interface Visitor
public void discoverEdge(Edge e)
Visitor
discoverEdge
in interface Visitor
public void finishEdge(Edge e)
Visitor
finishEdge
in interface Visitor
public void xform(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.MethodGen method, ControlFlowGraph cfg)
GraphXformer
xform
in interface GraphXformer
cg
- The class being transformed.method
- MethodGen for the method being transformed.cfg
- The method's control flow graph.public static java.lang.String getName()
public static void setName(java.lang.String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |